/**
 * 招聘 JS
 */
$(function(){

});

/*发布招聘信息*/
function recruit_add(title,url){
	//layer_show(title,url,w,h);
	var index = layer.open({
		type: 2,
		title: title,
		content: url
	});
	layer.full(index);
}

/*招聘信息-删除*/
function recruit_del(obj,id){
	layer.confirm('确认要删除吗？',function(index){
		$.ajax({
			type : "delete",
			dataType : "json",
			url:"delete/"+id+".do",
			success : function(data) {
				if (data.status == "success") {
					$(obj).parents("tr").remove();
					layer.msg(data.message,{icon:1});
				} else {
					layer.msg(data.message,{icon:2});
				}
			}
		});
	});
}

/*招聘信息-编辑*/
function recruit_edit(title,url){
	var index = layer.open({
		type: 2,
		title: title,
		content: url
	});
	layer.full(index);
}

/*招聘信息-查看*/
function recruit_show(title,url){
	var index = layer.open({
		type: 2,
		title: title,
		content: url
	});
	layer.full(index);
}

/*招聘信息-投递记录*/
function recruit_deliver_history(title,url){
	var index = layer.open({
		type: 2,
		title: title,
		content: url
	});
	layer.full(index);
}